Quản lý nhân sự công ty bằng c# _ full source code
60.401 lượt xem;
- frmTracuuTT.cs
- QuanLyNhanSu /
- project /
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Data;
5 using System.Drawing;
6 using System.Text;
7 using System.Windows.Forms;
8 using Telerik.WinControls;
9
10 namespace QuanLyNhanSu
11 {
12 public partial class frmtracuutt : RadForm
13 {
14 public frmtracuutt()
15 {
16 InitializeComponent();
17 }
18
19 private void frmQTBienDong_Load(object sender, EventArgs e)
20 {
21
22 }
23
24 private void radioButton1_CheckedChanged(object sender, EventArgs e)
25 {
26
27 }
28
29 private void button2_Click(object sender, EventArgs e)
30 {
31 Close();
32 }
33 private Form KiemTraTonTai(Type formType)
34 {
35 foreach (Form f in this.MdiParent.MdiChildren )
36 {
37 if (f.GetType() == formType)
38 return f;
39 }
40 return null;
41 }
42
43 private void button1_Click(object sender, EventArgs e)
44 {
45
46 if (opthd.Checked == true)
47 {
48 Form frm = KiemTraTonTai(typeof(frmtracuutthopdong));
49 if (frm != null)
50 frm.Activate();
51 else
52 {
53 frmtracuutthopdong f = new frmtracuutthopdong();
54 f.MdiParent = this.MdiParent;
55 f.Show();
56 }
57 }
58 else if (opttd.Checked == true)
59 {
60 Form frm = KiemTraTonTai(typeof(frmtracuutrinhdo));
61 if (frm != null)
62 frm.Activate();
63 else
64 {
65 frmtracuutrinhdo f = new frmtracuutrinhdo();
66 f.MdiParent = this.MdiParent;
67 f.Show();
68 }
69 }
70 }
71 }
72 }
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Data;
5 using System.Drawing;
6 using System.Text;
7 using System.Windows.Forms;
8 using Telerik.WinControls;
9
10 namespace QuanLyNhanSu
11 {
12 public partial class frmtracuutt : RadForm
13 {
14 public frmtracuutt()
15 {
16 InitializeComponent();
17 }
18
19 private void frmQTBienDong_Load(object sender, EventArgs e)
20 {
21
22 }
23
24 private void radioButton1_CheckedChanged(object sender, EventArgs e)
25 {
26
27 }
28
29 private void button2_Click(object sender, EventArgs e)
30 {
31 Close();
32 }
33 private Form KiemTraTonTai(Type formType)
34 {
35 foreach (Form f in this.MdiParent.MdiChildren )
36 {
37 if (f.GetType() == formType)
38 return f;
39 }
40 return null;
41 }
42
43 private void button1_Click(object sender, EventArgs e)
44 {
45
46 if (opthd.Checked == true)
47 {
48 Form frm = KiemTraTonTai(typeof(frmtracuutthopdong));
49 if (frm != null)
50 frm.Activate();
51 else
52 {
53 frmtracuutthopdong f = new frmtracuutthopdong();
54 f.MdiParent = this.MdiParent;
55 f.Show();
56 }
57 }
58 else if (opttd.Checked == true)
59 {
60 Form frm = KiemTraTonTai(typeof(frmtracuutrinhdo));
61 if (frm != null)
62 frm.Activate();
63 else
64 {
65 frmtracuutrinhdo f = new frmtracuutrinhdo();
66 f.MdiParent = this.MdiParent;
67 f.Show();
68 }
69 }
70 }
71 }
72 }